package com.hzit.portal.config;

import org.springframework.cache.interceptor.KeyGenerator;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;

/**
 * 类名：
 * 作者：WF
 * 功能：自定义key的生成器
 */
@Component
public class MyKeyGenerator implements KeyGenerator {
	@Override
	public Object generate(Object target, Method method, Object... params) {
		return "htiz_" + method.getName();
	}
}
